//package wechat;
//
//import net.sf.json.JSONObject;
//import org.apache.commons.lang.StringUtils;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//
//import java.util.HashMap;
//import java.util.Map;
//
//public class SendSmsUtil {
//
//	private static Logger log = LoggerFactory.getLogger(SendSmsUtil.class);
//
//	/*private final static String account = "tjhthy@tjhthy";
//	private final static String password = "sh64MT92";
//	private final static String url = "http://api.shuyuanwl.com:8080/api/sms/send?";*/
//
//	private final static String account = "bjmxsj@bjmxsj";
//	private final static String password = "TB8zqbjS";
//	private final static String url = "http://api.shuyuanwl.com:8080/api/sms/send?";
//
//	public static String sendSms(String phone,String content){
//		String result ="";
//		try {
//			Map<String, String> params = new HashMap<String, String>();
//			params.put("account", account);
//			params.put("password",password);
//			params.put("mobiles", phone);
//			params.put("content", content);
//	//		params.put("mobileAndContent", "17600901605|您的验证码是：666666");
//	//		params.put("mobileAndContent", "13581648587|您的验证码是：555555");
//
//			result = PostUtil.sendPost(url, params, "UTF-8");
//			JSONObject jsonObj = JSONObject.fromObject(result);
//			System.out.println(jsonObj.get("code"));
//			String resCode = jsonObj.getString("code");
//			if(StringUtils.isNotBlank(resCode) && "200".equals(resCode)){
//				log.info("发送验证码成功：code:"+resCode+",phone："+phone+",内容："+content);
//			} else{
//				log.info("发送验证码失败：code:"+resCode+"msg:"+jsonObj.getString("msg")+",phone："+phone+",内容："+content);
//			}
//
//		} catch (Exception e) {
//			log.info(e.getMessage());
//		}
//		return result;
//	}
//
//}
